package com.itheima.service.impl;

import com.itheima.dao.ItemsDao;
import com.itheima.domain.Items;
import com.itheima.service.ItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ItemsServiceImpl implements ItemsService {
    @Autowired
    private ItemsDao dao;

    public List<Items> findAll() {
        System.out.println("ItemsService的findAll执行111111");
        List<Items> items = dao.findAll();
        return items;
    }
}
